/**
 * Created by hss on 2017/7/23.
 */

//class 分页信息
class Page{
    constructor ( data , currentPage , currentPageNum , numPerPage , totalCount) {
        this.data = data ; //查询数据
        this.currentPage = currentPage ; //当前页
        this.currentPageNum = currentPageNum ; //当前页条数
        this.numPerPage = numPerPage ; //每页显示的条数
        this.totalCount = totalCount ; //总条数
        this.totalPage = Math.ceil( totalCount / numPerPage) ; //总页数
    }
}

module.exports = Page ;